<% layout('layout.ejs') -%>
<div ng-controller="AddCityCtr" ng-cloak class="ng-cloak">
    <div class="col-md-6">
        <div class="box box-primary">
            <div class="box-body" data-ng-init="load(<%= city %>)">
                <div class="form-group">
                    <label>省份名称</label>
                    <!--<select  class="form-control" ng-model="mycity" ng-options="city.province for city in Cities"></select>-->
                    <select  class="form-control" ng-model="myProvince" ng-options="province.id as province.province for province in Provinces" ng-change="changeCity()">

                    </select>

                </div>
                <div class="form-group">
                    <label>城市名称</label>
                    <input class="form-control" type="text" placeholder="" ng-model="city">
                </div>
                <div class="box-footer">
                    <button class="btn btn-primary" type="submit" ng-click="save_city()">提交</button>
                    <button class="btn btn-primary" type="button" onclick="window.location='/basedata/cityManage'">返回</button>
                </div>
            </div>
        </div>
    </div>

</div>
<% block('footer').append('<script src="/script/basedata.js"></script>') %>